import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

Vue.config.productionTip = false;

//全局组件
import TypeNav from '@/components/TypeNav';
import Pagination from '@/components/Pagination';
import '@/mock';
Vue.component('TypeNav', TypeNav);
Vue.component('Pagination', Pagination);
import { Button, Message } from 'element-ui';
Vue.use(Button);
Vue.prototype.$message = Message;
new Vue({
  el: '#app',
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this;
  },
  render: (h) => h(App),
});
